tri2map - raw triangle to Quake .map terrain convertor

Copyright (C) 2000  Seth Galbraith

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

AUTHORS:

Seth Galbraith
"The Serpent Lord"
http://www.planetquake.com/simitar
sgalbrai@krl.org


USAGE: tri2map [options] <file> [more options and/or files]

OPTIONS:

	-o [string] : output filename (NOTE: affects only the next input file)
	              (default = input filename but with .map extension)
	-h [float]  : horizontal scale (default = 64)
	-v [float]  : vertical   scale (default = 64)
	-s [float]  : sets both horizontal and vertical scale (default = 64)
	-x [float]  : X offset (lattitude) in Quake units (default = 0)
	-y [float]  : Y offset (longitude) in Quake units (default = 0)
	-z [float]  : Z offset (altitude)  in Quake units (default = 0)
	-f [float]  : height of brush bottoms in Quake units (default = -4096)
	-q          : use Quake Army Knife (QuArK)'s "three points"
	              texture alignment system to fit textures on faces
	              this float value is the number of texture pixels
	              to stretch along each edge of the triangles

HISTORY:

10-4-00

First release of raw2map convertor

10-24-00

Created tri2map convertor from raw2map convertor

3-17-01

Added special Quake Army Knife "three points" texture alignment option
included missing stdlib.h for the atof function

3-27-00

Changed printf format strings to output default precision